package week02;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class test08 {

	public static void main(String[] args) {
		try(FileInputStream fis=new FileInputStream("D:\\javatest\\FileMethods.class");
				DataInputStream dis=new DataInputStream(fis);
				FileOutputStream outFile=new FileOutputStream("D:\\javatest\\temp.class");
				DataOutputStream out=new DataOutputStream(outFile)){
				int temp;
				while((temp=dis.read())!=-1) {
					out.write(temp);
				}
				}catch(IOException e) {
					e.printStackTrace();
				}
	}

}
